class Label{
 
 int startx, endx;
 int layerID;
 int y_u, y_l;
 int x;

 float max_offset; 
 String text;
 int textWidth;
 int textSize;
 
 float slope; //tangent
 
 float avgOffset;
 
 Label(){
   startx = -1; 
   endx = -1;
   layerID = -1;
   y_u = 0;
   y_l = 0;
   x = 0;
   
   max_offset = 0; 
   text = "";
   textWidth = text.length();
   textSize = 0;
 }
 
 void setText(String _text){
   text = _text;
   setTextWidth();
 }
 
 void setTextWidth(){
   textWidth = text.length();
 }
 
 void addOffset(float offset, float _slope, int _x, int _y_l, int _y_u){
   
   if(offset < avgOffset){
     avgOffset = offset;
   } else if(offset > max_offset){
     max_offset = offset;
     slope = _slope;
     x = _x;
     y_u = _y_u;
     y_l = _y_l;
   }
   
 }
  
 boolean muchWidth(){
  
   if ( avgOffset < 10 ) return false;
   return true;
   
 }
}
